package com.yicong.ants.bean.global;

/**
 * 公告项
 *
 * @author cch
 * @version 2020/10/1
 */
public class NoticeRecordItem {

    /**
     * id : 1
     * title :
     * content : 为迎合国庆节旅游黄金时段，2020年9月30日18点开通转赠功能(余额和待产出一共保留10个门票，目前仅支持Android设备)。
     * status : 1
     * create_time : 2020-10-01 15:33:41
     */

    private int id;
    private String title;
    private String content;
    private String url;
    private int status;
    private String create_time;

    public NoticeRecordItem() {
    }

    public int getId() {
        return this.id;
    }

    public String getTitle() {
        return this.title;
    }

    public String getContent() {
        return this.content;
    }

    public String getUrl() {
        return this.url;
    }

    public int getStatus() {
        return this.status;
    }

    public String getCreate_time() {
        return this.create_time;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof NoticeRecordItem)) return false;
        final NoticeRecordItem other = (NoticeRecordItem) o;
        if (!other.canEqual((Object) this)) return false;
        if (this.getId() != other.getId()) return false;
        final Object this$title = this.getTitle();
        final Object other$title = other.getTitle();
        if (this$title == null ? other$title != null : !this$title.equals(other$title))
            return false;
        final Object this$content = this.getContent();
        final Object other$content = other.getContent();
        if (this$content == null ? other$content != null : !this$content.equals(other$content))
            return false;
        final Object this$url = this.getUrl();
        final Object other$url = other.getUrl();
        if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
        if (this.getStatus() != other.getStatus()) return false;
        final Object this$create_time = this.getCreate_time();
        final Object other$create_time = other.getCreate_time();
        if (this$create_time == null ? other$create_time != null : !this$create_time.equals(other$create_time))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof NoticeRecordItem;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * PRIME + this.getId();
        final Object $title = this.getTitle();
        result = result * PRIME + ($title == null ? 43 : $title.hashCode());
        final Object $content = this.getContent();
        result = result * PRIME + ($content == null ? 43 : $content.hashCode());
        final Object $url = this.getUrl();
        result = result * PRIME + ($url == null ? 43 : $url.hashCode());
        result = result * PRIME + this.getStatus();
        final Object $create_time = this.getCreate_time();
        result = result * PRIME + ($create_time == null ? 43 : $create_time.hashCode());
        return result;
    }

    public String toString() {
        return "NoticeRecordItem(id=" + this.getId() + ", title=" + this.getTitle() + ", content=" + this.getContent() + ", url=" + this.getUrl() + ", status=" + this.getStatus() + ", create_time=" + this.getCreate_time() + ")";
    }
}
